// 投票管理
import http from "@/utils/request";
export default {
  getList(params) {
    return http.post("/rest/admin/vote/search", params);
  },
  deleteRows(params) {
    return http.post("/rest/admin/vote/batchDel", params);
  },
  save(params) {
    return http.post("/rest/admin/vote/save", params);
  },
  getDetail(params) {
    // 详情
    return http.post("/rest/admin/vote/queryVoteDetail", params);
  },
  updateStatus(params) {
    // 变更投票状态
    return http.post("/rest/admin/vote/updateStatus", params);
  },
  exportFile(params) {
    // 投票记录导出
    return http.post("/rest/admin/vote/export", params, {
      responseType: "blob"
    });
  },
  getVoteState(params) {
    // 投票统计结果
    return http.post("/rest/admin/vote/voteStat", params);
  }
};
